<form method="post" action="/sys/resource/match" enctype="multipart/form-data" class="pageForm required-validate"
      onsubmit="return iframeCallback(this, pageRefresh)">
    <input type="hidden" id="id" name="id" th:value="${entity.id}">
    <input type="hidden" id="cmd5" name="cmd5" value="">
    <input type="hidden" id="uid" name="uid" value="">
    <input type="hidden" id="randomData" name="randomData" value="">
    <input type="hidden" id="url" name="url" value="">
    <div class="ibox no-margins no-padding no-borders">
        <div class="ibox-title p-xs ljFixBoxTitle">
            <div class="btn btn-sm btn-primary pull-right" id="btnEditSubmit"><i class="fa fa-paste">提交编辑</i></div>
        </div>
        <div style="height:40px;"></div>
        <div class="ibox-content">
            <div class="row">
                <div class="form-group col-md-4">
                    <label>所属系统(<b class="text-danger">*</b>):</label>
                    <input type="text" class="form-control required" th:value="${sysSystem.systemName}" readonly>
                </div>
                <div class="form-group col-md-4">
                    <label>所属模块(<b class="text-danger">*</b>):</label>
                    <input type="text" class="form-control required" th:value="${sysModel.modelName}" readonly>
                </div>
                <div class="form-group col-md-4">
                    <label>父资源(<b class="text-danger">*</b>):</label>
                    <input type="text" class="form-control required" th:value="${resName}" readonly>
                </div>
            </div>
            <div class="row">
                <div class="ibox-content p-xs ljScrollbar3" style="overflow:auto;" layoutH="300">
                    <table id="listTable" class="table table-striped table-bordered table-hover table-responsive lj-table-nowrap no-margins">
                        <tbody>
                        <tr th:each="item:${reqList}" class="warning ljMatchBtn" th:tid="${item}">
                            <td style="min-width:60px;" th:inline="text">[[${item}]]</td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</form>
<script>
    jQuery(function ($) {
        $(".chosen-select").chosen();
        $("[layoutH]").layoutH();
        $(".ljMatchBtn").on("click", function () {
            var url = $(this).attr("tid");
            swal({
                title: "是否匹配改地址:[" + url + "]?",
                type: "warning",
                showCancelButton: true,
                confirmButtonColor: "#DD6B55",
                confirmButtonText: "提交",
                cancelButtonText: "取消",
                closeOnConfirm: false
            }, function () {
                var values = {};
                modifyVerf(values);
                $("#cmd5").val(values.cmd5);
                $("#uid").val(values.uid);
                $("#randomData").val(values.randomData);
                $("#url").val(url);
                $("#btnEditSubmit").closest("form").submit();
            });
        });
    });
</script>